package cn.powertime.evaluation.facade.impl;

import cn.powertime.evaluation.annotation.Facade;
import cn.powertime.evaluation.entity.CpsQuestionBank;
import cn.powertime.evaluation.facade.CpsQuestionBankFacade;
import cn.powertime.evaluation.mapper.CpsQuestionBankMapper;
import cn.powertime.evaluation.service.CpsQuestionBankService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Facade
@Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED,isolation = Isolation.READ_COMMITTED)
public class CpsQuestionBankFacadeImpl extends ServiceImpl<CpsQuestionBankMapper, CpsQuestionBank> implements CpsQuestionBankFacade {

    @Autowired
    private CpsQuestionBankService cpsQuestionBankService;

    @Override
    public List<CpsQuestionBank> listAll(int type) {
        return cpsQuestionBankService.listAll(type);
    }

}
